package com.model;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;

import org.junit.Test;

@Entity
public class Minfo {

	private int infoid;
	private String senddepart;
	private String sender;
	private String senddate;
	private String sendtime;
	private String accstuffs;
	private String isimportant;
	private String readers;
	private String infotitle;
	private String infocontent;
	private String infohtml;
	private String alreadyreaders;
	private String isreturn;
	private String filenow;
	private String filetype;
	private String filename;
	private String bigfilenow;
	private String bigfiletype;
	private String bigfilename;
	private String ipaddress;
	private String isinjt;

	@OneToOne
	@JoinColumn(name = "sender", insertable = false, updatable = false)
	public Astuff getAstuff() {
		return astuff;
	}

	public void setAstuff(Astuff astuff) {
		this.astuff = astuff;
	}

	private Astuff astuff;

	@Id
	@GeneratedValue
	public int getInfoid() {
		return infoid;
	}

	public void setInfoid(int infoid) {
		this.infoid = infoid;
	}

	public String getSenddepart() {
		return senddepart;
	}

	public void setSenddepart(String senddepart) {
		this.senddepart = senddepart;
	}

	public String getSender() {
		return sender;
	}

	public void setSender(String sender) {
		this.sender = sender;
	}

	public String getSenddate() {

		return senddate;
	}

	public void setSenddate(String senddate) {
		this.senddate = senddate;
	}

	public String getSendtime() {
		return sendtime;
	}

	public void setSendtime(String sendtime) {
		this.sendtime = sendtime;
	}

	public String getAccstuffs() {
		return accstuffs;
	}

	public void setAccstuffs(String accstuffs) {
		this.accstuffs = accstuffs;

	}

	public String getIsimportant() {
		return isimportant;
	}

	public void setIsimportant(String isimportant) {
		this.isimportant = isimportant;
	}

	public String getReaders() {
		return readers;
	}

	public void setReaders(String readers) {
		this.readers = readers;
	}

	public String getInfotitle() {
		return infotitle;
	}

	public void setInfotitle(String infotitle) {
		this.infotitle = infotitle;
	}

	public String getInfohtml() {
		return infohtml;
	}

	public void setInfohtml(String infohtml) {
		this.infohtml = infohtml;
	}

	public String getAlreadyreaders() {
		return alreadyreaders;
	}

	public void setAlreadyreaders(String alreadyreaders) {
		this.alreadyreaders = alreadyreaders;
	}

	public String getIsreturn() {
		return isreturn;
	}

	public void setIsreturn(String isreturn) {
		this.isreturn = isreturn;
	}

	public String getFilenow() {
		return filenow;
	}

	public void setFilenow(String filenow) {
		this.filenow = filenow;
	}

	public String getFiletype() {
		return filetype;
	}

	public void setFiletype(String filetype) {
		this.filetype = filetype;
	}

	public String getFilename() {
		return filename;
	}

	public void setFilename(String filename) {
		this.filename = filename;
	}

	public String getBigfilenow() {
		return bigfilenow;
	}

	public void setBigfilenow(String bigfilenow) {
		this.bigfilenow = bigfilenow;
	}

	public String getBigfiletype() {
		return bigfiletype;
	}

	public void setBigfiletype(String bigfiletype) {
		this.bigfiletype = bigfiletype;
	}

	public String getBigfilename() {
		return bigfilename;
	}

	public void setBigfilename(String bigfilename) {
		this.bigfilename = bigfilename;
	}

	public String getIpaddress() {
		return ipaddress;
	}

	public void setIpaddress(String ipaddress) {
		this.ipaddress = ipaddress;
	}

	public String getIsinjt() {
		return isinjt;
	}

	public void setIsinjt(String isinjt) {
		this.isinjt = isinjt;
	}

	public String getInfocontent() {
		return infocontent;
	}

	public void setInfocontent(String infocontent) {
		this.infocontent = infocontent;
	}

}
